import { PageEnum } from '/@/enums/pageEnum';

// 个人界面
export default {
  path: PageEnum.USER,
  name: 'USER',
  meta: {
    requiredAuth: true,
  },
  components: {
    header: () => import('/@/components/MainHeaderBox.vue'),
    default: () => import('/@/views/user/User.vue'),
  },
  redirect: PageEnum.USER_POSTS,
  children: [
    // 文章
    {
      path: PageEnum.USER_POSTS,
      name: 'USER_POSTS',
      component: () => import('/@/views/user/Posts.vue'),
    },
    //专栏
    {
      path: PageEnum.USER_COLUMNS,
      name: 'USER_COLUMNS',
      component: () => import('/@/views/user/Columns.vue'),
    },
    //星点
    {
      path: PageEnum.USER_PINS,
      name: 'USER_PINS',
      component: () => import('/@/views/user/Pins.vue'),
    },
  ],
};
